package day_13;

import java.io.BufferedOutputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

public class TestOut {
    public static void main(String[] args) throws Exception {
        //method();
        method2();
    }
    private static void method2() throws Exception {
        OutputStream out = null;
        //  out = new FileOutputStream("D:\\java\\2.txt", true);
        out = new BufferedOutputStream(new FileOutputStream("D:\\java\\2.txt", true));
        out.write(88);
        out.write(89);
        out.write(90);
        out.close();
    }
    private static void method() throws Exception {
        OutputStream out = null;
        out = new FileOutputStream("D:\\java\\2.txt", true);
        out.write(88);
        out.write(89);
        out.write(90);
        out.close();
    }
}
